[INFO] cloning repository https://github.com/aleksandrpak/rust-talk
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aleksandrpak/rust-talk" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faleksandrpak%2Frust-talk", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faleksandrpak%2Frust-talk'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ed25c7d85040ef552d038547bcd9f4d6476184ca
[INFO] checking aleksandrpak/rust-talk against master#9610dfe5a9a731ced1ea4923ecbd0c57fe367898 for beta-170-4
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faleksandrpak%2Frust-talk" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/aleksandrpak/rust-talk on toolchain 9610dfe5a9a731ced1ea4923ecbd0c57fe367898
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/aleksandrpak/rust-talk
[INFO] finished tweaking git repo https://github.com/aleksandrpak/rust-talk
[INFO] tweaked toml for git repo https://github.com/aleksandrpak/rust-talk written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/aleksandrpak/rust-talk already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 38c2dacf2b1917c685fbcb03efa448648f2147f61d8263d700dd969bb5b91d57
[INFO] running `Command { std: "docker" "start" "-a" "38c2dacf2b1917c685fbcb03efa448648f2147f61d8263d700dd969bb5b91d57", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "38c2dacf2b1917c685fbcb03efa448648f2147f61d8263d700dd969bb5b91d57", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "38c2dacf2b1917c685fbcb03efa448648f2147f61d8263d700dd969bb5b91d57", kill_on_drop: false }`
[INFO] [stdout] 38c2dacf2b1917c685fbcb03efa448648f2147f61d8263d700dd969bb5b91d57
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f84c1f404b394fe1ea7b36cfcfe81c2ba7f4d221cec0176df51c24f6d168021e
[INFO] running `Command { std: "docker" "start" "-a" "f84c1f404b394fe1ea7b36cfcfe81c2ba7f4d221cec0176df51c24f6d168021e", kill_on_drop: false }`
[INFO] [stderr]     Checking rust-talk v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `foo`, which is owned by the current function
[INFO] [stdout]   --> examples/mutex.rs:21:19
[INFO] [stdout]    |
[INFO] [stdout] 21 |     thread::spawn(|| {
[INFO] [stdout]    |                   ^^ may outlive borrowed value `foo`
[INFO] [stdout] 22 |         foo.increment();
[INFO] [stdout]    |         --- `foo` is borrowed here
[INFO] [stdout]    |
[INFO] [stdout] note: function requires argument type to outlive `'static`
[INFO] [stdout]   --> examples/mutex.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | /     thread::spawn(|| {
[INFO] [stdout] 22 | |         foo.increment();
[INFO] [stdout] 23 | |     });
[INFO] [stdout]    | |______^
[INFO] [stdout] help: to force the closure to take ownership of `foo` (and any other referenced variables), use the `move` keyword
[INFO] [stdout]    |
[INFO] [stdout] 21 |     thread::spawn(move || {
[INFO] [stdout]    |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0373`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-talk` (example "mutex") due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: field `bar` is never read
[INFO] [stdout]  --> examples/string_second.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub struct Foo {
[INFO] [stdout]   |            --- field in this struct
[INFO] [stdout] 3 |     bar: String,
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Foo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `bar` is never read
[INFO] [stdout]  --> examples/string_third.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Foo<'a> {
[INFO] [stdout]   |            --- field in this struct
[INFO] [stdout] 5 |     bar: Cow<'a, str>,
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Foo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `vec`
[INFO] [stdout]  --> examples/for.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let mut vec = vec![1, 2, 3];
[INFO] [stdout]   |         ------- move occurs because `vec` has type `Vec<i32>`, which does not implement the `Copy` trait
[INFO] [stdout] 3 |
[INFO] [stdout] 4 |     for item in vec {
[INFO] [stdout]   |                 --- `vec` moved due to this implicit call to `.into_iter()`
[INFO] [stdout] ...
[INFO] [stdout] 8 |     vec[0] = 0;
[INFO] [stdout]   |     ^^^ value borrowed here after move
[INFO] [stdout]   |
[INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `vec`
[INFO] [stdout]  --> /rustc/9610dfe5a9a731ced1ea4923ecbd0c57fe367898/library/core/src/iter/traits/collect.rs:271:18
[INFO] [stdout] help: consider iterating over a slice of the `Vec<i32>`'s content to avoid moving into the `for` loop
[INFO] [stdout]   |
[INFO] [stdout] 4 |     for item in &vec {
[INFO] [stdout]   |                 +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> examples/mut.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut foo = Foo::new();
[INFO] [stdout]    |         ----^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> examples/mut.rs:26:13
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let mut bar = foo.get_bar();
[INFO] [stdout]    |             ----^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0594]: cannot assign to `bar.counter`, which is behind a `&` reference
[INFO] [stdout]   --> examples/mut.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         bar.counter += 1;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ `bar` is a `&` reference, so the data it refers to cannot be written
[INFO] [stdout]    |
[INFO] [stdout] help: consider specifying this binding's type
[INFO] [stdout]    |
[INFO] [stdout] 26 |         let mut bar: &mut Bar = foo.get_bar();
[INFO] [stdout]    |                    ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0594`.
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-talk` (example "for") due to 2 previous errors
[INFO] [stderr] error: could not compile `rust-talk` (example "mut") due to 2 previous errors; 2 warnings emitted
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/string_first.rs:13:24
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let foo = Foo::new("bar");
[INFO] [stdout]    |               -------- ^^^^^- help: try using a conversion method: `.to_string()`
[INFO] [stdout]    |               |        |
[INFO] [stdout]    |               |        expected `String`, found `&str`
[INFO] [stdout]    |               arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> examples/string_first.rs:7:12
[INFO] [stdout]    |
[INFO] [stdout] 7  |     pub fn new(bar: String) -> Foo {
[INFO] [stdout]    |            ^^^ -----------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-talk` (example "string_first") due to 2 previous errors
[INFO] running `Command { std: "docker" "inspect" "f84c1f404b394fe1ea7b36cfcfe81c2ba7f4d221cec0176df51c24f6d168021e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f84c1f404b394fe1ea7b36cfcfe81c2ba7f4d221cec0176df51c24f6d168021e", kill_on_drop: false }`
[INFO] [stdout] f84c1f404b394fe1ea7b36cfcfe81c2ba7f4d221cec0176df51c24f6d168021e
